Nevron Open Vision Documentation
Nevron.Nov.Dom Namespace / NDocumentFormatRegistry<TDocumentFormat> Class / GetFromFileAsync Method
The file to analyze.
Specifies whether the file is going to be used for reading or for writing.


In This Topic
    GetFromFileAsync Method
    In This Topic
    Gets the document format from the specified file. If the file format couldn't be recognized from the given file, the default file format of the document registry is returned.
    Syntax
    'Declaration
     
    
    Public Function GetFromFileAsync( _
       ByVal file As NFile, _
       ByVal forReading As System.Boolean _
    ) As NPromise(Of TDocumentFormat)
    'Usage
     
    
    Dim instance As NDocumentFormatRegistry(Of TDocumentFormat)
    Dim file As NFile
    Dim forReading As System.Boolean
    Dim value As NPromise(Of TDocumentFormat)
     
    value = instance.GetFromFileAsync(file, forReading)
    public NPromise<TDocumentFormat> GetFromFileAsync( 
       NFile file,
       System.bool forReading
    )

    Parameters

    file
    The file to analyze.
    forReading
    Specifies whether the file is going to be used for reading or for writing.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also